package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 最爱喝兽奶
 * @create 2022/8/16
 **/
@Api("用户和考试的关联表")
@Data
@TableName(value = "T_USER_EXAM")
public class UserExam implements Serializable {

    /**
     * 主键
     */
    @TableId
    private String id;

    /**
     * 关联的用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 考试id
     */
    @TableField(value = "exam_id")
    private String examId;

    /**
     * 考试场次
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 考试分数
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 主观题得分
     */
    @TableField(value = "subjective_score")
    private Integer subjectiveScore;

    /**
     * 客观题得分
     */
    @TableField(value = "objective_score")
    private Integer objectiveScore;

    @TableField(value = "status")
    private Integer status;

}
